<template>

  <div>
    <div ref="div">内容</div>
    <button ref="btn" @click="fn">修改内容</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      cityId: '107',
    }
  },
  mounted() {},
  methods: {
    fn() {
      this.$refs.div.innerHTML = 'goodbye'
    },
  },
}
</script>

<style></style>
